import request from "@/utils/request";

//查询
export function getDocument(doc) {
  return request({
    url: "/doc",
    method: "GET",
    params: doc
  });
}

//获取单个pdf的图片形式
export function getDocumentById(id) {
  return request({
    url: "/doc/toImg",
    method: "POST",
    params: {id: id}
  });
}
